BackgroundCustomization

data class BackgroundCustomization(@ColorRes() backgroundColor: Int?, @DimenRes() cornerRadius: Int?, @ColorRes() borderColor: Int?, @DimenRes() borderWidth: Int?, @DimenRes() bgElevation: Int?)

Use this class to set the background style of a specified user interface element.

Parameters

backgroundColor

Background colour resource reference.

cornerRadius

Button corner radius resource reference.

borderColor

Border colour resource reference.

borderWidth

Border width resource reference.

bgElevation

Button elevation resource reference.

Constructors

BackgroundCustomization
Link copied to clipboard
fun BackgroundCustomization(@ColorRes() backgroundColor: Int? = null, @DimenRes() cornerRadius: Int? = null, @ColorRes() borderColor: Int? = null, @DimenRes() borderWidth: Int? = null, @DimenRes() bgElevation: Int? = null)

Properties

backgroundColor
Link copied to clipboard
var backgroundColor: Int? = null
Background colour resource reference.
bgElevation
Link copied to clipboard
var bgElevation: Int? = null
Button elevation resource reference.
borderColor
Link copied to clipboard
var borderColor: Int? = null
Border colour resource reference.
borderWidth
Link copied to clipboard
var borderWidth: Int? = null
Border width resource reference.
cornerRadius
Link copied to clipboard
var cornerRadius: Int? = null
Button corner radius resource reference.